export interface User {
  id: number
  username: string
  avatar_url?: string
  role: 'USER' | 'ADMIN'
  token?: string
}

export interface Article {
  id: number
  title: string
  summary: string
  file_path: string
  create_by: string
  user_id: number
  category_id?: number
  is_top: boolean
  view_count: number
  favorite_count: number
  is_deleted: boolean
  create_time: string
  update_time: string
  tags?: Tag[]
}

export interface Tag {
  id: number
  name: string
}

export interface Category {
  id: number
  name: string
  parent_id?: number
  user_id: number
  sort_order: number
}
